package com.example.application8_2;

import android.content.Context;

import androidx.annotation.NonNull;
import androidx.room.Database;
import androidx.room.DatabaseConfiguration;
import androidx.room.InvalidationTracker;
import androidx.room.Room;
import androidx.room.RoomDatabase;
import androidx.sqlite.db.SupportSQLiteOpenHelper;

//@Database(entities = {User.class},version = 1)
//public abstract class MyRoomDatabase extends RoomDatabase {
//    private static MyRoomDatabase instance;
//
//    public abstract UserDao userDao();
//
//    static MyRoomDatabase getInstance(Context context){
//        if(instance == null){
//            instance = Room.databaseBuilder(context.getApplicationContext(),
//                    MyRoomDatabase.class,"room")
//                    .allowMainThreadQueries()
//                    .build();
//        }
//        return instance;
//    }
//
//    @NonNull
//    @Override
//    protected SupportSQLiteOpenHelper createOpenHelper(DatabaseConfiguration config) {
//        return null;
//    }
//
//    @NonNull
//    @Override
//    protected InvalidationTracker createInvalidationTracker() {
//        return null;
//    }
//
//    @Override
//    public void clearAllTables() {
//
//    }
//}
